#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START apt-repo-tools
#
# depends: apt-rpm
# depends: rpm

reset_mtime apt-repo-tools apt-repo-tools/configure.ac
rm -rf build/apt-repo-tools
mkdir -p build/apt-repo-tools
cd build/apt-repo-tools
../../apt-repo-tools/configure \
	${CONFIGURE_ARGS} \
	${AUTOCRAP_KLUDGE}

make -j${JOBS}
make -j${JOBS} install DESTDIR=`pwd`/inst
wipe_la_files "`pwd`/inst"

cd inst
find . | cpio -pumd "$stage"
cd ../../..
#rm -rf build/apt-repo-tools

# RECIPE END apt-repo-tools
